package com.design.AdapterMode.AdapterDemo;

/**
 * 适配器优化demo代码
 */
public class Main {
    public static void main(String[] args) {
        AdapterManager manager = new AdapterManager();
        manager.addAdapter(new Adapter1());
        manager.addAdapter(new Adapter2());
        manager.addAdapter(new Adapter3());
        final String filter = manager.filter("你就是一个垃圾，这么菜，艹，煞笔，滚吧。");
        System.out.println("过滤后："+filter);
    }
}
